package com.xyzq.service.sm.impl;

import java.util.Date;
import java.util.List;

import org.appfuse.model.User;
import org.appfuse.service.impl.GenericManagerImpl;

import com.xyzq.dao.sm.DepositoryBusinessDAO;
import com.xyzq.model.sm.DepositoryBusiness;
import com.xyzq.service.sm.DepositoryBusinessManager;

public class DepositoryBusinessManagerImpl extends
		GenericManagerImpl<DepositoryBusiness, Long> implements
		DepositoryBusinessManager {
	private DepositoryBusinessDAO depositoryBusinessDao;

	public DepositoryBusinessManagerImpl(
			DepositoryBusinessDAO depositoryBusinessDao) {
		super(depositoryBusinessDao);
		this.depositoryBusinessDao = depositoryBusinessDao;
	}

	public List<DepositoryBusiness> findByUser(User user) {
		// TODO Auto-generated method stub
		return this.depositoryBusinessDao.findByUser(user);
	}

	public Boolean DidSub(User user, Date day) {
		// TODO Auto-generated method stub
		return this.depositoryBusinessDao.findByDateAndUser(user, day);
	}

}
